// ****************************************************************************** 
// Copyright     :  Copyright (C) 2018, Hisilicon Technologies Co. Ltd.
// File name     :  l2buff_2_c_union_define.h
// Project line  :  Platform And Key Technologies Development
// Department    :  CAD Development Department
// Author        :  xxx
// Version       :  1.0
// Date          :  2013/3/10
// Description   :  The description of xxx project
// Others        :  Generated automatically by nManager V4.2 
// History       :  xxx 2018/03/16 17:39:05 Create file
// ******************************************************************************

#ifndef __L2BUFF_2_C_UNION_DEFINE_H__
#define __L2BUFF_2_C_UNION_DEFINE_H__

/* Define the union U_L2BUFF_STATIC_CTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_0                  : 12  ; /* [31:20] */
        unsigned int    reg_timeout_en         : 1  ; /* [19] */
        unsigned int    reg_arb_optimize       : 1  ; /* [18] */
        unsigned int    reg_rdrpt_optimize     : 1  ; /* [17] */
        unsigned int    reg_buff_obligate_2_en : 1  ; /* [16] */
        unsigned int    reg_buff_obligate_1_en : 1  ; /* [15] */
        unsigned int    reg_pgnt_conflict_en   : 1  ; /* [14] */
        unsigned int    reg_arb_onecycle_en    : 1  ; /* [13] */
        unsigned int    reorder_en_all         : 1  ; /* [12] */
        unsigned int    reorder_en_2           : 1  ; /* [11] */
        unsigned int    reorder_en_1           : 1  ; /* [10] */
        unsigned int    reorder_en_0           : 1  ; /* [9] */
        unsigned int    fifo_shut_en           : 1  ; /* [8] */
        unsigned int    dmt_en                 : 1  ; /* [7] */
        unsigned int    pos_en                 : 1  ; /* [6] */
        unsigned int    int_shut_en            : 1  ; /* [5] */
        unsigned int    rsv_1                  : 1  ; /* [4] */
        unsigned int    lower_power_en         : 1  ; /* [3] */
        unsigned int    err_first_en           : 1  ; /* [2] */
        unsigned int    rsv_2                  : 1  ; /* [1] */
        unsigned int    link_down              : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_STATIC_CTRL;

/* Define the union U_L2BUFF_STATIC_AUCTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_3 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_STATIC_AUCTRL;

/* Define the union U_L2BUFF_INVLD */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_4              : 30  ; /* [31:2] */
        unsigned int    l2buff_invld_done  : 1  ; /* [1] */
        unsigned int    l2buff_invld_start : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_INVLD;

/* Define the union U_L2BUFF_SEC_CTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_5       : 31  ; /* [31:1] */
        unsigned int    sec_addr_en : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_SEC_CTRL;

/* Define the union U_L2BUFF_SEC_ADDR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_6    : 14  ; /* [31:18] */
        unsigned int    sec_addr : 18  ; /* [17:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_SEC_ADDR;

/* Define the union U_L2BUFF_SEC_SIZE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_7    : 14  ; /* [31:18] */
        unsigned int    sec_size : 18  ; /* [17:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_SEC_SIZE;

/* Define the union U_L2BUFF_ADDR_INTLV */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_8        : 31  ; /* [31:1] */
        unsigned int    l2buff_intlv : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ADDR_INTLV;

/* Define the union U_L2BUFF_DYNAMIC_CTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_9                  : 27  ; /* [31:5] */
        unsigned int    resperr_shutdown_en    : 1  ; /* [4] */
        unsigned int    ecc_flush_shutdown_en  : 1  ; /* [3] */
        unsigned int    ecc_detect_shutdown_en : 1  ; /* [2] */
        unsigned int    rsv_10                 : 1  ; /* [1] */
        unsigned int    rsv_11                 : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DYNAMIC_CTRL;

/* Define the union U_L2BUFF_DYNAMIC_AUCTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    timeout_cnt : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DYNAMIC_AUCTRL;

/* Define the union U_L2BUFF_DFX_CTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_12        : 19  ; /* [31:13] */
        unsigned int    perf_event_en : 1  ; /* [12] */
        unsigned int    inside_bufid  : 4  ; /* [11:8] */
        unsigned int    rsv_13        : 3  ; /* [7:5] */
        unsigned int    req_bufid     : 5  ; /* [4:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_CTRL;

/* Define the union U_L2BUFF_REORDER_ID */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    reorder_srcid_3 : 9  ; /* [31:23] */
        unsigned int    rsv_14          : 2  ; /* [22:21] */
        unsigned int    reorder_srcid_1 : 9  ; /* [20:12] */
        unsigned int    rsv_15          : 3  ; /* [11:9] */
        unsigned int    reorder_srcid_0 : 9  ; /* [8:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_REORDER_ID;

/* Define the union U_L2BUFF_ECCCINJECT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    eccinject_bit2_sel : 8  ; /* [31:24] */
        unsigned int    rsv_16             : 7  ; /* [23:17] */
        unsigned int    eccinject_bit2_en  : 1  ; /* [16] */
        unsigned int    eccinject_bit1_sel : 8  ; /* [15:8] */
        unsigned int    rsv_17             : 7  ; /* [7:1] */
        unsigned int    eccinject_bit1_en  : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ECCCINJECT;

/* Define the union U_L2BUFF_INTM */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_18          : 22  ; /* [31:10] */
        unsigned int    err_ns_m        : 1  ; /* [9] */
        unsigned int    err_wrfull_size : 1  ; /* [8] */
        unsigned int    err_wrptl_size  : 1  ; /* [7] */
        unsigned int    err_write_m     : 1  ; /* [6] */
        unsigned int    err_read_m      : 1  ; /* [5] */
        unsigned int    err_req_m       : 1  ; /* [4] */
        unsigned int    event_cnt3_m    : 1  ; /* [3] */
        unsigned int    event_cnt2_m    : 1  ; /* [2] */
        unsigned int    event_cnt1_m    : 1  ; /* [1] */
        unsigned int    event_cnt0_m    : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_INTM;

/* Define the union U_L2BUFF_RINT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_19           : 22  ; /* [31:10] */
        unsigned int    err_ns_r         : 1  ; /* [9] */
        unsigned int    err_wrptl_full_r : 1  ; /* [8] */
        unsigned int    err_wrptl_ptl_r  : 1  ; /* [7] */
        unsigned int    err_write_r      : 1  ; /* [6] */
        unsigned int    err_read_r       : 1  ; /* [5] */
        unsigned int    err_req_r        : 1  ; /* [4] */
        unsigned int    event_cnt3_r     : 1  ; /* [3] */
        unsigned int    event_cnt2_r     : 1  ; /* [2] */
        unsigned int    event_cnt1_r     : 1  ; /* [1] */
        unsigned int    event_cnt0_r     : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_RINT;

/* Define the union U_L2BUFF_INTS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_20            : 22  ; /* [31:10] */
        unsigned int    err_ns_i          : 1  ; /* [9] */
        unsigned int    err_wrfull_size_i : 1  ; /* [8] */
        unsigned int    err_wrptl_size_i  : 1  ; /* [7] */
        unsigned int    err_write_i       : 1  ; /* [6] */
        unsigned int    err_read_i        : 1  ; /* [5] */
        unsigned int    err_req_i         : 1  ; /* [4] */
        unsigned int    event_cnt3_i      : 1  ; /* [3] */
        unsigned int    event_cnt2_i      : 1  ; /* [2] */
        unsigned int    event_cnt1_i      : 1  ; /* [1] */
        unsigned int    event_cnt0_i      : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_INTS;

/* Define the union U_L2BUFF_INTC */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_21            : 22  ; /* [31:10] */
        unsigned int    err_ns_c          : 1  ; /* [9] */
        unsigned int    err_wrfull_size_c : 1  ; /* [8] */
        unsigned int    err_wrptl_size_c  : 1  ; /* [7] */
        unsigned int    err_write_c       : 1  ; /* [6] */
        unsigned int    err_read_c        : 1  ; /* [5] */
        unsigned int    err_req_c         : 1  ; /* [4] */
        unsigned int    event_cnt3_c      : 1  ; /* [3] */
        unsigned int    event_cnt2_c      : 1  ; /* [2] */
        unsigned int    event_cnt1_c      : 1  ; /* [1] */
        unsigned int    event_cnt0_c      : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_INTC;

/* Define the union U_L2BUFF_STATUS */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_22        : 31  ; /* [31:1] */
        unsigned int    l2buff_status : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_STATUS;

/* Define the union U_L2BUFF_DFX_STAT_REQ_ACC */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_23    : 22  ; /* [31:10] */
        unsigned int    retry     : 1  ; /* [9] */
        unsigned int    ram_wr    : 1  ; /* [8] */
        unsigned int    ram_rd_11 : 1  ; /* [7] */
        unsigned int    ram_rd_10 : 1  ; /* [6] */
        unsigned int    ram_rd_01 : 1  ; /* [5] */
        unsigned int    ram_rd_00 : 1  ; /* [4] */
        unsigned int    txcomp    : 1  ; /* [3] */
        unsigned int    txrdrpt   : 1  ; /* [2] */
        unsigned int    txdbid    : 1  ; /* [1] */
        unsigned int    valid     : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_STAT_REQ_ACC;

/* Define the union U_L2BUFF_DFX_STAT_REQ_FLIT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_24      : 3  ; /* [31:29] */
        unsigned int    size_bit    : 4  ; /* [28:25] */
        unsigned int    opcode      : 6  ; /* [24:19] */
        unsigned int    endian_mode : 1  ; /* [18] */
        unsigned int    retnid      : 9  ; /* [17:9] */
        unsigned int    srcid       : 9  ; /* [8:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_STAT_REQ_FLIT;

/* Define the union U_L2BUFF_DFX_STAT_REQ_ADDR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_25 : 16  ; /* [31:16] */
        unsigned int    addr   : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_STAT_REQ_ADDR;

/* Define the union U_L2BUFF_DFX_STAT_INSIDE_FLIT */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_26        : 7  ; /* [31:25] */
        unsigned int    inside_size   : 4  ; /* [24:21] */
        unsigned int    inside_opcode : 6  ; /* [20:15] */
        unsigned int    inside_endian : 1  ; /* [14] */
        unsigned int    inside_srcid  : 9  ; /* [13:5] */
        unsigned int    inside_rxrsp  : 1  ; /* [4] */
        unsigned int    inside_txreq  : 1  ; /* [3] */
        unsigned int    inside_txcomp : 1  ; /* [2] */
        unsigned int    inside_txdbid : 1  ; /* [1] */
        unsigned int    inside_valid  : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_STAT_INSIDE_FLIT;

/* Define the union U_L2BUFF_DFX_STAT_INSIDE_ADDR */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_27      : 14  ; /* [31:18] */
        unsigned int    inside_addr : 18  ; /* [17:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_STAT_INSIDE_ADDR;

/* Define the union U_L2BUFF_DFX_INFO_0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    srcid    : 9  ; /* [31:23] */
        unsigned int    retnid   : 9  ; /* [22:14] */
        unsigned int    rsv_28   : 7  ; /* [13:7] */
        unsigned int    err_type : 6  ; /* [6:1] */
        unsigned int    err_vld  : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_INFO_0;

/* Define the union U_L2BUFF_DFX_INFO_1 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    addr   : 18  ; /* [31:14] */
        unsigned int    opcode : 6  ; /* [13:8] */
        unsigned int    txnid  : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_INFO_1;

/* Define the union U_L2BUFF_DFX_INFO_2 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_29    : 22  ; /* [31:10] */
        unsigned int    reqrsv    : 4  ; /* [9:6] */
        unsigned int    cacheable : 1  ; /* [5] */
        unsigned int    ns        : 1  ; /* [4] */
        unsigned int    size      : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_DFX_INFO_2;

/* Define the union U_L2BUFF_MEM_CFG_HISI */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_30                : 8  ; /* [31:24] */
        unsigned int    sc_mem_cfg_hisi_sp_hc : 8  ; /* [23:16] */
        unsigned int    sc_mem_cfg_hisi_sp_hd : 8  ; /* [15:8] */
        unsigned int    sc_mem_cfg_hisi_tp    : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_MEM_CFG_HISI;

/* Define the union U_L2BUFF_EVENT_CTRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_31        : 28  ; /* [31:4] */
        unsigned int    event_cnt3_en : 1  ; /* [3] */
        unsigned int    event_cnt2_en : 1  ; /* [2] */
        unsigned int    event_cnt1_en : 1  ; /* [1] */
        unsigned int    event_cnt0_en : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CTRL;

/* Define the union U_L2BUFF_EVENT_TYPE */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    l2buff_event_cnt3_type : 8  ; /* [31:24] */
        unsigned int    l2buff_event_cnt2_type : 8  ; /* [23:16] */
        unsigned int    l2buff_event_cnt1_type : 8  ; /* [15:8] */
        unsigned int    l2buff_event_cnt0_type : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_TYPE;

/* Define the union U_L2BUFF_EVENT_CNT0_L */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    l2buff_event_counter0 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT0_L;

/* Define the union U_L2BUFF_EVENT_CNT0_H */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_32                  : 16  ; /* [31:16] */
        unsigned int    l2buff_event_counter0_h : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT0_H;

/* Define the union U_L2BUFF_EVENT_CNT1_L */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    l2buff_event_counter1 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT1_L;

/* Define the union U_L2BUFF_EVENT_CNT1_H */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_33                  : 16  ; /* [31:16] */
        unsigned int    l2buff_event_counter1_h : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT1_H;

/* Define the union U_L2BUFF_EVENT_CNT2_L */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    l2buff_event_counter2 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT2_L;

/* Define the union U_L2BUFF_EVENT_CNT2_H */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_34                  : 16  ; /* [31:16] */
        unsigned int    l2buff_event_counter2_h : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT2_H;

/* Define the union U_L2BUFF_EVENT_CNT3_L */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    l2buff_event_counter3 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT3_L;

/* Define the union U_L2BUFF_EVENT_CNT3_H */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_35                  : 16  ; /* [31:16] */
        unsigned int    l2buff_event_counter3_h : 16  ; /* [15:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_EVENT_CNT3_H;

/* Define the union U_L2BUFF_ERR_FRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_36 : 12  ; /* [31:20] */
        unsigned int    ceo    : 2  ; /* [19:18] */
        unsigned int    dui    : 2  ; /* [17:16] */
        unsigned int    rp     : 1  ; /* [15] */
        unsigned int    cec    : 3  ; /* [14:12] */
        unsigned int    cfi    : 2  ; /* [11:10] */
        unsigned int    ue     : 2  ; /* [9:8] */
        unsigned int    fi     : 2  ; /* [7:6] */
        unsigned int    ui     : 2  ; /* [5:4] */
        unsigned int    rsv_37 : 2  ; /* [3:2] */
        unsigned int    ed     : 2  ; /* [1:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_FRL;

/* Define the union U_L2BUFF_ERR_FRH */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_38 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_FRH;

/* Define the union U_L2BUFF_ERR_CTRLL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_39 : 21  ; /* [31:11] */
        unsigned int    dui    : 1  ; /* [10] */
        unsigned int    rsv_40 : 1  ; /* [9] */
        unsigned int    cfi    : 1  ; /* [8] */
        unsigned int    rsv_41 : 3  ; /* [7:5] */
        unsigned int    ue     : 1  ; /* [4] */
        unsigned int    fi     : 1  ; /* [3] */
        unsigned int    ui     : 1  ; /* [2] */
        unsigned int    rsv_42 : 1  ; /* [1] */
        unsigned int    ed     : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_CTRLL;

/* Define the union U_L2BUFF_ERR_CTRLH */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_43 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_CTRLH;

/* Define the union U_L2BUFF_ERR_STATUSL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    av     : 1  ; /* [31] */
        unsigned int    v      : 1  ; /* [30] */
        unsigned int    ue     : 1  ; /* [29] */
        unsigned int    er     : 1  ; /* [28] */
        unsigned int    of     : 1  ; /* [27] */
        unsigned int    mv     : 1  ; /* [26] */
        unsigned int    ce     : 2  ; /* [25:24] */
        unsigned int    de     : 1  ; /* [23] */
        unsigned int    pn     : 1  ; /* [22] */
        unsigned int    uet    : 2  ; /* [21:20] */
        unsigned int    rsv_44 : 4  ; /* [19:16] */
        unsigned int    ierr   : 8  ; /* [15:8] */
        unsigned int    serr   : 8  ; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_STATUSL;

/* Define the union U_L2BUFF_ERR_STATUSH */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_45 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_STATUSH;

/* Define the union U_L2BUFF_ERR_ADDRL */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_46 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_ADDRL;

/* Define the union U_L2BUFF_ERR_ADDRH */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_47 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_ADDRH;

/* Define the union U_L2BUFF_ERR_MISC0L */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_48          : 4  ; /* [31:28] */
        unsigned int    secc_cnt_ovflow : 1  ; /* [27] */
        unsigned int    secc_cnt        : 8  ; /* [26:19] */
        unsigned int    addr_ecc_error  : 18  ; /* [18:1] */
        unsigned int    type_ecc_error  : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_MISC0L;

/* Define the union U_L2BUFF_ERR_MISC0H */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_49 : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_MISC0H;

/* Define the union U_L2BUFF_ERR_MISC1L */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    srcid    : 9  ; /* [31:23] */
        unsigned int    retnid   : 9  ; /* [22:14] */
        unsigned int    rsv_50   : 7  ; /* [13:7] */
        unsigned int    err_type : 6  ; /* [6:1] */
        unsigned int    err_vld  : 1  ; /* [0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_MISC1L;

/* Define the union U_L2BUFF_ERR_MISC1H */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_51    : 16  ; /* [31:16] */
        unsigned int    opcode    : 6  ; /* [15:10] */
        unsigned int    reqrsv    : 4  ; /* [9:6] */
        unsigned int    cacheable : 1  ; /* [5] */
        unsigned int    ns        : 1  ; /* [4] */
        unsigned int    size      : 4  ; /* [3:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_ERR_MISC1H;

/* Define the union U_L2BUFF_MAGIC_WORD */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    magic_word : 32  ; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_MAGIC_WORD;

/* Define the union U_L2BUFF_VERSION0 */
typedef union
{
    /* Define the struct bits */
    struct
    {
        unsigned int    rsv_52            : 12  ; /* [31:20] */
        unsigned int    main_version      : 4  ; /* [19:16] */
        unsigned int    sub_version       : 4  ; /* [15:12] */
        unsigned int    hisilicon_version : 12  ; /* [11:0] */
    } bits;

    /* Define an unsigned member */
    unsigned int    u32;

} U_L2BUFF_VERSION0;


//==============================================================================
/* Define the global struct */
typedef struct
{
    volatile U_L2BUFF_STATIC_CTRL          L2BUFF_STATIC_CTRL          ; /* 0 */
    volatile U_L2BUFF_STATIC_AUCTRL        L2BUFF_STATIC_AUCTRL        ; /* 4 */
    volatile U_L2BUFF_INVLD                L2BUFF_INVLD                ; /* 8 */
    volatile U_L2BUFF_SEC_CTRL             L2BUFF_SEC_CTRL             ; /* 10 */
    volatile U_L2BUFF_SEC_ADDR             L2BUFF_SEC_ADDR             ; /* 20 */
    volatile U_L2BUFF_SEC_SIZE             L2BUFF_SEC_SIZE             ; /* 24 */
    volatile U_L2BUFF_ADDR_INTLV           L2BUFF_ADDR_INTLV           ; /* 98 */
    volatile U_L2BUFF_DYNAMIC_CTRL         L2BUFF_DYNAMIC_CTRL         ; /* 400 */
    volatile U_L2BUFF_DYNAMIC_AUCTRL       L2BUFF_DYNAMIC_AUCTRL       ; /* 404 */
    volatile U_L2BUFF_DFX_CTRL             L2BUFF_DFX_CTRL             ; /* 408 */
    volatile U_L2BUFF_REORDER_ID           L2BUFF_REORDER_ID           ; /* 430 */
    volatile U_L2BUFF_ECCCINJECT           L2BUFF_ECCCINJECT           ; /* 5F0 */
    volatile U_L2BUFF_INTM                 L2BUFF_INTM                 ; /* 800 */
    volatile U_L2BUFF_RINT                 L2BUFF_RINT                 ; /* 804 */
    volatile U_L2BUFF_INTS                 L2BUFF_INTS                 ; /* 808 */
    volatile U_L2BUFF_INTC                 L2BUFF_INTC                 ; /* 80C */
    volatile U_L2BUFF_STATUS               L2BUFF_STATUS               ; /* 1030 */
    volatile U_L2BUFF_DFX_STAT_REQ_ACC     L2BUFF_DFX_STAT_REQ_ACC     ; /* 1040 */
    volatile U_L2BUFF_DFX_STAT_REQ_FLIT    L2BUFF_DFX_STAT_REQ_FLIT    ; /* 1044 */
    volatile U_L2BUFF_DFX_STAT_REQ_ADDR    L2BUFF_DFX_STAT_REQ_ADDR    ; /* 1048 */
    volatile U_L2BUFF_DFX_STAT_INSIDE_FLIT L2BUFF_DFX_STAT_INSIDE_FLIT ; /* 1050 */
    volatile U_L2BUFF_DFX_STAT_INSIDE_ADDR L2BUFF_DFX_STAT_INSIDE_ADDR ; /* 1054 */
    volatile U_L2BUFF_DFX_INFO_0           L2BUFF_DFX_INFO_0           ; /* 1060 */
    volatile U_L2BUFF_DFX_INFO_1           L2BUFF_DFX_INFO_1           ; /* 1064 */
    volatile U_L2BUFF_DFX_INFO_2           L2BUFF_DFX_INFO_2           ; /* 1068 */
    volatile U_L2BUFF_MEM_CFG_HISI         L2BUFF_MEM_CFG_HISI         ; /* 1B00 */
    volatile U_L2BUFF_EVENT_CTRL           L2BUFF_EVENT_CTRL           ; /* 1C00 */
    volatile U_L2BUFF_EVENT_TYPE           L2BUFF_EVENT_TYPE           ; /* 1D00 */
    volatile U_L2BUFF_EVENT_CNT0_L         L2BUFF_EVENT_CNT0_L         ; /* 1E00 */
    volatile U_L2BUFF_EVENT_CNT0_H         L2BUFF_EVENT_CNT0_H         ; /* 1E04 */
    volatile U_L2BUFF_EVENT_CNT1_L         L2BUFF_EVENT_CNT1_L         ; /* 1E08 */
    volatile U_L2BUFF_EVENT_CNT1_H         L2BUFF_EVENT_CNT1_H         ; /* 1E0C */
    volatile U_L2BUFF_EVENT_CNT2_L         L2BUFF_EVENT_CNT2_L         ; /* 1E10 */
    volatile U_L2BUFF_EVENT_CNT2_H         L2BUFF_EVENT_CNT2_H         ; /* 1E14 */
    volatile U_L2BUFF_EVENT_CNT3_L         L2BUFF_EVENT_CNT3_L         ; /* 1E18 */
    volatile U_L2BUFF_EVENT_CNT3_H         L2BUFF_EVENT_CNT3_H         ; /* 1E1C */
    volatile U_L2BUFF_ERR_FRL              L2BUFF_ERR_FRL              ; /* 2000 */
    volatile U_L2BUFF_ERR_FRH              L2BUFF_ERR_FRH              ; /* 2004 */
    volatile U_L2BUFF_ERR_CTRLL            L2BUFF_ERR_CTRLL            ; /* 2008 */
    volatile U_L2BUFF_ERR_CTRLH            L2BUFF_ERR_CTRLH            ; /* 200C */
    volatile U_L2BUFF_ERR_STATUSL          L2BUFF_ERR_STATUSL          ; /* 2010 */
    volatile U_L2BUFF_ERR_STATUSH          L2BUFF_ERR_STATUSH          ; /* 2014 */
    volatile U_L2BUFF_ERR_ADDRL            L2BUFF_ERR_ADDRL            ; /* 2018 */
    volatile U_L2BUFF_ERR_ADDRH            L2BUFF_ERR_ADDRH            ; /* 201C */
    volatile U_L2BUFF_ERR_MISC0L           L2BUFF_ERR_MISC0L           ; /* 2020 */
    volatile U_L2BUFF_ERR_MISC0H           L2BUFF_ERR_MISC0H           ; /* 2024 */
    volatile U_L2BUFF_ERR_MISC1L           L2BUFF_ERR_MISC1L           ; /* 2028 */
    volatile U_L2BUFF_ERR_MISC1H           L2BUFF_ERR_MISC1H           ; /* 202C */
    volatile U_L2BUFF_MAGIC_WORD           L2BUFF_MAGIC_WORD           ; /* 7F0 */
    volatile U_L2BUFF_VERSION0             L2BUFF_VERSION0             ; /* C10 */

} S_l2buff_2_REGS_TYPE;

/* Declare the struct pointor of the module l2buff_2 */
extern volatile S_l2buff_2_REGS_TYPE *gopl2buff_2AllReg;

/* Declare the functions that set the member value */
int iSetL2BUFF_STATIC_CTRL_reg_timeout_en(unsigned int ureg_timeout_en);
int iSetL2BUFF_STATIC_CTRL_reg_arb_optimize(unsigned int ureg_arb_optimize);
int iSetL2BUFF_STATIC_CTRL_reg_rdrpt_optimize(unsigned int ureg_rdrpt_optimize);
int iSetL2BUFF_STATIC_CTRL_reg_buff_obligate_2_en(unsigned int ureg_buff_obligate_2_en);
int iSetL2BUFF_STATIC_CTRL_reg_buff_obligate_1_en(unsigned int ureg_buff_obligate_1_en);
int iSetL2BUFF_STATIC_CTRL_reg_pgnt_conflict_en(unsigned int ureg_pgnt_conflict_en);
int iSetL2BUFF_STATIC_CTRL_reg_arb_onecycle_en(unsigned int ureg_arb_onecycle_en);
int iSetL2BUFF_STATIC_CTRL_reorder_en_all(unsigned int ureorder_en_all);
int iSetL2BUFF_STATIC_CTRL_reorder_en_2(unsigned int ureorder_en_2);
int iSetL2BUFF_STATIC_CTRL_reorder_en_1(unsigned int ureorder_en_1);
int iSetL2BUFF_STATIC_CTRL_reorder_en_0(unsigned int ureorder_en_0);
int iSetL2BUFF_STATIC_CTRL_fifo_shut_en(unsigned int ufifo_shut_en);
int iSetL2BUFF_STATIC_CTRL_dmt_en(unsigned int udmt_en);
int iSetL2BUFF_STATIC_CTRL_pos_en(unsigned int upos_en);
int iSetL2BUFF_STATIC_CTRL_int_shut_en(unsigned int uint_shut_en);
int iSetL2BUFF_STATIC_CTRL_lower_power_en(unsigned int ulower_power_en);
int iSetL2BUFF_STATIC_CTRL_err_first_en(unsigned int uerr_first_en);
int iSetL2BUFF_STATIC_CTRL_link_down(unsigned int ulink_down);

int iSetL2BUFF_INVLD_l2buff_invld_done(unsigned int ul2buff_invld_done);
int iSetL2BUFF_INVLD_l2buff_invld_start(unsigned int ul2buff_invld_start);
int iSetL2BUFF_SEC_CTRL_sec_addr_en(unsigned int usec_addr_en);
int iSetL2BUFF_SEC_ADDR_sec_addr(unsigned int usec_addr);
int iSetL2BUFF_SEC_SIZE_sec_size(unsigned int usec_size);
int iSetL2BUFF_ADDR_INTLV_l2buff_intlv(unsigned int ul2buff_intlv);
int iSetL2BUFF_DYNAMIC_CTRL_resperr_shutdown_en(unsigned int uresperr_shutdown_en);
int iSetL2BUFF_DYNAMIC_CTRL_ecc_flush_shutdown_en(unsigned int uecc_flush_shutdown_en);
int iSetL2BUFF_DYNAMIC_CTRL_ecc_detect_shutdown_en(unsigned int uecc_detect_shutdown_en);
int iSetL2BUFF_DYNAMIC_AUCTRL_timeout_cnt(unsigned int utimeout_cnt);
int iSetL2BUFF_DFX_CTRL_perf_event_en(unsigned int uperf_event_en);
int iSetL2BUFF_DFX_CTRL_inside_bufid(unsigned int uinside_bufid);
int iSetL2BUFF_DFX_CTRL_req_bufid(unsigned int ureq_bufid);
int iSetL2BUFF_REORDER_ID_reorder_srcid_3(unsigned int ureorder_srcid_3);
int iSetL2BUFF_REORDER_ID_reorder_srcid_1(unsigned int ureorder_srcid_1);
int iSetL2BUFF_REORDER_ID_reorder_srcid_0(unsigned int ureorder_srcid_0);
int iSetL2BUFF_ECCCINJECT_eccinject_bit2_sel(unsigned int ueccinject_bit2_sel);
int iSetL2BUFF_ECCCINJECT_eccinject_bit2_en(unsigned int ueccinject_bit2_en);
int iSetL2BUFF_ECCCINJECT_eccinject_bit1_sel(unsigned int ueccinject_bit1_sel);
int iSetL2BUFF_ECCCINJECT_eccinject_bit1_en(unsigned int ueccinject_bit1_en);
int iSetL2BUFF_INTM_err_ns_m(unsigned int uerr_ns_m);
int iSetL2BUFF_INTM_err_wrfull_size(unsigned int uerr_wrfull_size);
int iSetL2BUFF_INTM_err_wrptl_size(unsigned int uerr_wrptl_size);
int iSetL2BUFF_INTM_err_write_m(unsigned int uerr_write_m);
int iSetL2BUFF_INTM_err_read_m(unsigned int uerr_read_m);
int iSetL2BUFF_INTM_err_req_m(unsigned int uerr_req_m);
int iSetL2BUFF_INTM_event_cnt3_m(unsigned int uevent_cnt3_m);
int iSetL2BUFF_INTM_event_cnt2_m(unsigned int uevent_cnt2_m);
int iSetL2BUFF_INTM_event_cnt1_m(unsigned int uevent_cnt1_m);
int iSetL2BUFF_INTM_event_cnt0_m(unsigned int uevent_cnt0_m);
int iSetL2BUFF_RINT_err_ns_r(unsigned int uerr_ns_r);
int iSetL2BUFF_RINT_err_wrptl_full_r(unsigned int uerr_wrptl_full_r);
int iSetL2BUFF_RINT_err_wrptl_ptl_r(unsigned int uerr_wrptl_ptl_r);
int iSetL2BUFF_RINT_err_write_r(unsigned int uerr_write_r);
int iSetL2BUFF_RINT_err_read_r(unsigned int uerr_read_r);
int iSetL2BUFF_RINT_err_req_r(unsigned int uerr_req_r);
int iSetL2BUFF_RINT_event_cnt3_r(unsigned int uevent_cnt3_r);
int iSetL2BUFF_RINT_event_cnt2_r(unsigned int uevent_cnt2_r);
int iSetL2BUFF_RINT_event_cnt1_r(unsigned int uevent_cnt1_r);
int iSetL2BUFF_RINT_event_cnt0_r(unsigned int uevent_cnt0_r);
int iSetL2BUFF_INTS_err_ns_i(unsigned int uerr_ns_i);
int iSetL2BUFF_INTS_err_wrfull_size_i(unsigned int uerr_wrfull_size_i);
int iSetL2BUFF_INTS_err_wrptl_size_i(unsigned int uerr_wrptl_size_i);
int iSetL2BUFF_INTS_err_write_i(unsigned int uerr_write_i);
int iSetL2BUFF_INTS_err_read_i(unsigned int uerr_read_i);
int iSetL2BUFF_INTS_err_req_i(unsigned int uerr_req_i);
int iSetL2BUFF_INTS_event_cnt3_i(unsigned int uevent_cnt3_i);
int iSetL2BUFF_INTS_event_cnt2_i(unsigned int uevent_cnt2_i);
int iSetL2BUFF_INTS_event_cnt1_i(unsigned int uevent_cnt1_i);
int iSetL2BUFF_INTS_event_cnt0_i(unsigned int uevent_cnt0_i);
int iSetL2BUFF_INTC_err_ns_c(unsigned int uerr_ns_c);
int iSetL2BUFF_INTC_err_wrfull_size_c(unsigned int uerr_wrfull_size_c);
int iSetL2BUFF_INTC_err_wrptl_size_c(unsigned int uerr_wrptl_size_c);
int iSetL2BUFF_INTC_err_write_c(unsigned int uerr_write_c);
int iSetL2BUFF_INTC_err_read_c(unsigned int uerr_read_c);
int iSetL2BUFF_INTC_err_req_c(unsigned int uerr_req_c);
int iSetL2BUFF_INTC_event_cnt3_c(unsigned int uevent_cnt3_c);
int iSetL2BUFF_INTC_event_cnt2_c(unsigned int uevent_cnt2_c);
int iSetL2BUFF_INTC_event_cnt1_c(unsigned int uevent_cnt1_c);
int iSetL2BUFF_INTC_event_cnt0_c(unsigned int uevent_cnt0_c);
int iSetL2BUFF_STATUS_l2buff_status(unsigned int ul2buff_status);
int iSetL2BUFF_DFX_STAT_REQ_ACC_retry(unsigned int uretry);
int iSetL2BUFF_DFX_STAT_REQ_ACC_ram_wr(unsigned int uram_wr);
int iSetL2BUFF_DFX_STAT_REQ_ACC_ram_rd_11(unsigned int uram_rd_11);
int iSetL2BUFF_DFX_STAT_REQ_ACC_ram_rd_10(unsigned int uram_rd_10);
int iSetL2BUFF_DFX_STAT_REQ_ACC_ram_rd_01(unsigned int uram_rd_01);
int iSetL2BUFF_DFX_STAT_REQ_ACC_ram_rd_00(unsigned int uram_rd_00);
int iSetL2BUFF_DFX_STAT_REQ_ACC_txcomp(unsigned int utxcomp);
int iSetL2BUFF_DFX_STAT_REQ_ACC_txrdrpt(unsigned int utxrdrpt);
int iSetL2BUFF_DFX_STAT_REQ_ACC_txdbid(unsigned int utxdbid);
int iSetL2BUFF_DFX_STAT_REQ_ACC_valid(unsigned int uvalid);
int iSetL2BUFF_DFX_STAT_REQ_FLIT_size_bit(unsigned int usize_bit);
int iSetL2BUFF_DFX_STAT_REQ_FLIT_opcode(unsigned int uopcode);
int iSetL2BUFF_DFX_STAT_REQ_FLIT_endian_mode(unsigned int uendian_mode);
int iSetL2BUFF_DFX_STAT_REQ_FLIT_retnid(unsigned int uretnid);
int iSetL2BUFF_DFX_STAT_REQ_FLIT_srcid(unsigned int usrcid);
int iSetL2BUFF_DFX_STAT_REQ_ADDR_addr(unsigned int uaddr);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_size(unsigned int uinside_size);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_opcode(unsigned int uinside_opcode);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_endian(unsigned int uinside_endian);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_srcid(unsigned int uinside_srcid);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_rxrsp(unsigned int uinside_rxrsp);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_txreq(unsigned int uinside_txreq);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_txcomp(unsigned int uinside_txcomp);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_txdbid(unsigned int uinside_txdbid);
int iSetL2BUFF_DFX_STAT_INSIDE_FLIT_inside_valid(unsigned int uinside_valid);
int iSetL2BUFF_DFX_STAT_INSIDE_ADDR_inside_addr(unsigned int uinside_addr);
int iSetL2BUFF_DFX_INFO_0_srcid(unsigned int usrcid);
int iSetL2BUFF_DFX_INFO_0_retnid(unsigned int uretnid);
int iSetL2BUFF_DFX_INFO_0_err_type(unsigned int uerr_type);
int iSetL2BUFF_DFX_INFO_0_err_vld(unsigned int uerr_vld);
int iSetL2BUFF_DFX_INFO_1_addr(unsigned int uaddr);
int iSetL2BUFF_DFX_INFO_1_opcode(unsigned int uopcode);
int iSetL2BUFF_DFX_INFO_1_txnid(unsigned int utxnid);
int iSetL2BUFF_DFX_INFO_2_reqrsv(unsigned int ureqrsv);
int iSetL2BUFF_DFX_INFO_2_cacheable(unsigned int ucacheable);
int iSetL2BUFF_DFX_INFO_2_ns(unsigned int uns);
int iSetL2BUFF_DFX_INFO_2_size(unsigned int usize);
int iSetL2BUFF_MEM_CFG_HISI_sc_mem_cfg_hisi_sp_hc(unsigned int usc_mem_cfg_hisi_sp_hc);
int iSetL2BUFF_MEM_CFG_HISI_sc_mem_cfg_hisi_sp_hd(unsigned int usc_mem_cfg_hisi_sp_hd);
int iSetL2BUFF_MEM_CFG_HISI_sc_mem_cfg_hisi_tp(unsigned int usc_mem_cfg_hisi_tp);
int iSetL2BUFF_EVENT_CTRL_event_cnt3_en(unsigned int uevent_cnt3_en);
int iSetL2BUFF_EVENT_CTRL_event_cnt2_en(unsigned int uevent_cnt2_en);
int iSetL2BUFF_EVENT_CTRL_event_cnt1_en(unsigned int uevent_cnt1_en);
int iSetL2BUFF_EVENT_CTRL_event_cnt0_en(unsigned int uevent_cnt0_en);
int iSetL2BUFF_EVENT_TYPE_l2buff_event_cnt3_type(unsigned int ul2buff_event_cnt3_type);
int iSetL2BUFF_EVENT_TYPE_l2buff_event_cnt2_type(unsigned int ul2buff_event_cnt2_type);
int iSetL2BUFF_EVENT_TYPE_l2buff_event_cnt1_type(unsigned int ul2buff_event_cnt1_type);
int iSetL2BUFF_EVENT_TYPE_l2buff_event_cnt0_type(unsigned int ul2buff_event_cnt0_type);
int iSetL2BUFF_EVENT_CNT0_L_l2buff_event_counter0(unsigned int ul2buff_event_counter0);
int iSetL2BUFF_EVENT_CNT0_H_l2buff_event_counter0_h(unsigned int ul2buff_event_counter0_h);
int iSetL2BUFF_EVENT_CNT1_L_l2buff_event_counter1(unsigned int ul2buff_event_counter1);
int iSetL2BUFF_EVENT_CNT1_H_l2buff_event_counter1_h(unsigned int ul2buff_event_counter1_h);
int iSetL2BUFF_EVENT_CNT2_L_l2buff_event_counter2(unsigned int ul2buff_event_counter2);
int iSetL2BUFF_EVENT_CNT2_H_l2buff_event_counter2_h(unsigned int ul2buff_event_counter2_h);
int iSetL2BUFF_EVENT_CNT3_L_l2buff_event_counter3(unsigned int ul2buff_event_counter3);
int iSetL2BUFF_EVENT_CNT3_H_l2buff_event_counter3_h(unsigned int ul2buff_event_counter3_h);
int iSetL2BUFF_ERR_FRL_ceo(unsigned int uceo);
int iSetL2BUFF_ERR_FRL_dui(unsigned int udui);
int iSetL2BUFF_ERR_FRL_rp(unsigned int urp);
int iSetL2BUFF_ERR_FRL_cec(unsigned int ucec);
int iSetL2BUFF_ERR_FRL_cfi(unsigned int ucfi);
int iSetL2BUFF_ERR_FRL_ue(unsigned int uue);
int iSetL2BUFF_ERR_FRL_fi(unsigned int ufi);
int iSetL2BUFF_ERR_FRL_ui(unsigned int uui);
int iSetL2BUFF_ERR_FRL_ed(unsigned int ued);

int iSetL2BUFF_ERR_CTRLL_dui(unsigned int udui);
int iSetL2BUFF_ERR_CTRLL_cfi(unsigned int ucfi);
int iSetL2BUFF_ERR_CTRLL_ue(unsigned int uue);
int iSetL2BUFF_ERR_CTRLL_fi(unsigned int ufi);
int iSetL2BUFF_ERR_CTRLL_ui(unsigned int uui);
int iSetL2BUFF_ERR_CTRLL_ed(unsigned int ued);

int iSetL2BUFF_ERR_STATUSL_av(unsigned int uav);
int iSetL2BUFF_ERR_STATUSL_v(unsigned int uv);
int iSetL2BUFF_ERR_STATUSL_ue(unsigned int uue);
int iSetL2BUFF_ERR_STATUSL_er(unsigned int uer);
int iSetL2BUFF_ERR_STATUSL_of(unsigned int uof);
int iSetL2BUFF_ERR_STATUSL_mv(unsigned int umv);
int iSetL2BUFF_ERR_STATUSL_ce(unsigned int uce);
int iSetL2BUFF_ERR_STATUSL_de(unsigned int ude);
int iSetL2BUFF_ERR_STATUSL_pn(unsigned int upn);
int iSetL2BUFF_ERR_STATUSL_uet(unsigned int uuet);
int iSetL2BUFF_ERR_STATUSL_ierr(unsigned int uierr);
int iSetL2BUFF_ERR_STATUSL_serr(unsigned int userr);



int iSetL2BUFF_ERR_MISC0L_secc_cnt_ovflow(unsigned int usecc_cnt_ovflow);
int iSetL2BUFF_ERR_MISC0L_secc_cnt(unsigned int usecc_cnt);
int iSetL2BUFF_ERR_MISC0L_addr_ecc_error(unsigned int uaddr_ecc_error);
int iSetL2BUFF_ERR_MISC0L_type_ecc_error(unsigned int utype_ecc_error);

int iSetL2BUFF_ERR_MISC1L_srcid(unsigned int usrcid);
int iSetL2BUFF_ERR_MISC1L_retnid(unsigned int uretnid);
int iSetL2BUFF_ERR_MISC1L_err_type(unsigned int uerr_type);
int iSetL2BUFF_ERR_MISC1L_err_vld(unsigned int uerr_vld);
int iSetL2BUFF_ERR_MISC1H_opcode(unsigned int uopcode);
int iSetL2BUFF_ERR_MISC1H_reqrsv(unsigned int ureqrsv);
int iSetL2BUFF_ERR_MISC1H_cacheable(unsigned int ucacheable);
int iSetL2BUFF_ERR_MISC1H_ns(unsigned int uns);
int iSetL2BUFF_ERR_MISC1H_size(unsigned int usize);
int iSetL2BUFF_MAGIC_WORD_magic_word(unsigned int umagic_word);
int iSetL2BUFF_VERSION0_main_version(unsigned int umain_version);
int iSetL2BUFF_VERSION0_sub_version(unsigned int usub_version);
int iSetL2BUFF_VERSION0_hisilicon_version(unsigned int uhisilicon_version);

#endif // __L2BUFF_2_C_UNION_DEFINE_H__
